package cn.edu.jsu.zjj.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 已登录用户视图
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "用户登录返回的数据格式")
public class LoginUserVO {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty("jwt令牌")
    private String token;

    /**
     * 返回的是一个列表
     */
    @ApiModelProperty(value = "用户角色：user/admin")
    private List<String> roles;
//    private String role;

    @ApiModelProperty(value = "信息完善度")
    private String complete;

    @ApiModelProperty(value = "必填项")
    private boolean required;
}
